home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / sgml / msdos / sgml07 / trace.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-13  |  5.3 KB  |  117 lines

  1. /* TRACE.H: Declarations for internal trace functions. */
  2.  
  3. #ifdef FINAL
  4.  
  5. #define TRACEADL(al) /* empty */
  6. #define TRACECON(etagimct, dostag, datarc, pcb, conrefsw, didreq) /* empty */
  7. #define TRACEDCN(dcn) /* empty */
  8. #define TRACEDSK(pts, ptso, ts3, etictr) /* empty */
  9. #define TRACEECB(action, p) /* empty */
  10. #define TRACEEND(stagenm, mod, pos, rc, opt, Tstart) /* empty */
  11. #define TRACEESN(p) /* empty */
  12. #define TRACEETG(pts, curetd, tsl, etagimct) /* empty */
  13. #define TRACEETD(p) /* empty */
  14. #define TRACEGI(stagenm, gi, mod, pos, Tstart) /* empty */
  15. #define TRACEGML(scb, pss, conactsw, conact) /* empty */
  16. #define TRACEGRP(p) /* empty */
  17. #define TRACEID(action, p) /* empty */
  18. #define TRACEMAP(mapnm, key, data) /* empty */
  19. #define TRACEMD(p) /* empty */
  20. #define TRACEMOD(p) /* empty */
  21. #define TRACEMS(action, code, mslevel, msplevel) /* empty */
  22. #define TRACENGR(p) /* empty */
  23. #define TRACEPCB(p) /* empty */
  24. #define TRACEPRO() /* empty */
  25. #define TRACESET() /* empty */
  26. #define TRACESRM(action, pg, gi) /* empty */
  27. #define TRACESTG(curetd, dataret, rc, nextetd, mexts) /* empty */
  28. #define TRACESTK(pts, ts2, etictr) /* empty */
  29. #define TRACETKN(scope, lextoke) /* empty */
  30. #define TRACEVAL(pcb, atype, aval, tokencnt) /* empty */
  31.  
  32. #else /* not FINAL */
  33.  
  34. /* Trace variables.
  35. */
  36. extern int  trace;            /* Switch: 1=trace state transitions; 0=don't. */
  37. extern int atrace;            /* Switch: 1=trace attribute activity; 0=don't. */
  38. extern int ctrace;            /* Switch: 1=trace context checking; 0=don't. */
  39. extern int dtrace;            /* Switch: 1=trace declaration parsing; 0=don't.*/
  40. extern int etrace;            /* Switch: 1=trace entity activity; 0=don't.*/
  41. extern int gtrace;            /* Switch: 1=trace group creations; 0=don't. */
  42. extern int itrace;            /* Switch: 1=trace ID activity; 0=don't. */
  43. extern int mtrace;            /* Switch: 1=trace MS activity; 0=don't. */
  44. extern int ntrace;            /* Switch: 1=trace data notation activity. */
  45. extern char emd[];            /* For "EMD" parameter type in dtrace calls. */
  46.  
  47. VOID traceadl P((struct ad *));
  48. VOID tracecon P((int,int,int,struct parse *,int,int));
  49. VOID tracedcn P((struct dcncb *));
  50. VOID tracedsk P((struct tag *,struct tag *,int,int));
  51. VOID traceecb P((char *,struct entity *));
  52. VOID traceend P((char *,struct thdr *,struct mpos *,int,int,int));
  53. VOID traceesn P((struct ne *));
  54. VOID traceetd P((struct etd *));
  55. VOID traceetg P((struct tag *,struct etd *,int,int));
  56. VOID tracegi P((char *,struct etd *,struct thdr *,struct mpos *,int));
  57. VOID tracegml P((struct restate *,int,int,int));
  58. VOID tracegrp P((struct etd **));
  59. VOID traceid P((char *,struct id *));
  60. VOID tracemap P((char *,char *,int));
  61. VOID tracemd P((char *));
  62. VOID tracemod P((struct thdr *));
  63. VOID tracems P((int,int,int,int));
  64. VOID tracengr P((struct dcncb **));
  65. VOID tracepcb P((struct parse *));
  66. VOID tracepro P((void));
  67. VOID traceset P((void));
  68. VOID tracesrm P((char *,struct entity **,UNCH *));
  69. VOID tracestg P((struct etd *,int,int,struct etd *,int));
  70. VOID tracestk P((struct tag *,int,int));
  71. VOID tracetkn P((int,UNCH *));
  72. VOID traceval P((struct parse *,unsigned int,UNCH *,int));
  73.  
  74. #define TRACEADL(al) ((void)(atrace && (traceadl(al), 1)))
  75. #define TRACECON(etagimct, dostag, datarc, pcb, conrefsw, didreq) \
  76.   ((void)(gtrace \
  77.           && (tracecon(etagimct, dostag, datarc, pcb, conrefsw, didreq), 1)))
  78. #define TRACEDCN(dcn) ((void)(ntrace && (tracedcn(dcn), 1)))
  79. #define TRACEDSK(pts, ptso, ts3, etictr) \
  80.   ((void)(gtrace && (tracedsk(pts, ptso, ts3, etictr), 1)))
  81. #define TRACEECB(action, p) \
  82.   ((void)(etrace && (traceecb(action, p), 1)))
  83. #define TRACEEND(stagenm, mod, pos, rc, opt, Tstart) \
  84.   ((void)(ctrace && (traceend(stagenm, mod, pos, rc, opt, Tstart), 1)))
  85. #define TRACEESN(p) \
  86.   ((void)((etrace || atrace || ntrace) && (traceesn(p), 1)))
  87. #define TRACEETD(p) ((void)(gtrace && (traceetd(p), 1)))
  88. #define TRACEETG(pts, curetd, tsl, etagimct) \
  89.   ((void)(gtrace && (traceetg(pts, curetd, tsl, etagimct), 1)))
  90. #define TRACEGI(stagenm, gi, mod, pos, Tstart) \
  91.   ((void)(ctrace && (tracegi(stagenm, gi, mod, pos, Tstart), 1)))
  92. #define TRACEGML(scb, pss, conactsw, conact) \
  93.   ((void)(trace && (tracegml(scb, pss, conactsw, conact), 1)))
  94. #define TRACEGRP(p) ((void)(gtrace && (tracegrp(p), 1)))
  95. #define TRACEID(action, p) ((void)(itrace && (traceid(action, p), 1)))
  96. #define TRACEMAP(mapnm, key, data) \
  97.   ((void)(dtrace && (tracemap(mapnm, key, data), 1)))
  98. #define TRACEMD(p) ((void)(dtrace && (tracemd(p), 1)))
  99. #define TRACEMOD(p) ((void)(gtrace && (tracemod(p), 1)))
  100. #define TRACEMS(action, code, mslevel, msplevel) \
  101.   ((void)(mtrace && (tracems(action, code, mslevel, msplevel), 1)))
  102. #define TRACENGR(p) ((void)(gtrace && (tracengr(p), 1)))
  103. #define TRACEPCB(p) ((void)(trace && (tracepcb(p), 1)))
  104. #define TRACEPRO() (tracepro())
  105. #define TRACESET() (traceset())
  106. #define TRACESRM(action, pg, gi) \
  107.   ((void)(etrace && (tracesrm(action, pg, gi), 1)))
  108. #define TRACESTG(curetd, dataret, rc, nextetd, mexts) \
  109.   ((void)(gtrace && (tracestg(curetd, dataret, rc, nextetd, mexts), 1)))
  110. #define TRACESTK(pts, ts2, etictr) \
  111.   ((void)(gtrace && (tracestk(pts, ts2, etictr), 1)))
  112. #define TRACETKN(scope, lextoke) \
  113.   ((void)(trace && (tracetkn(scope, lextoke), 1)))
  114. #define TRACEVAL(pcb, atype, aval, tokencnt) \
  115.   ((void)(atrace && (traceval(pcb, atype, aval, tokencnt), 1)))
  116. #endif /* not FINAL */
  117.